package com.homegoods.discover.ui.fragment;

import com.homegoods.discover.R;
import com.homegoods.discover.presenter.BestCollectionPresenter;
import com.kedll.library.databinding.PullableListviewBinding;
import com.kedll.library.fragment.KRefreshListFragment;

/**
 * @author QiQi
 * @ClassName: BestCollectionFragment
 * @date 2018/9/10
 * @description 精选
 */
public class BestCollectionFragment extends KRefreshListFragment<PullableListviewBinding, BestCollectionPresenter> {
    @Override
    public void onStart() {
        super.onStart();
        if (mPresenter != null) {
            mPresenter.onStart();
        }
    }

    @Override
    public void onStop() {
        super.onStop();
        if (mPresenter != null) {
            mPresenter.onStop();
        }
    }

    @Override
    public void onUserInvisible() {
        super.onUserInvisible();
        if (mPresenter != null) {
            mPresenter.onStop();
        }
        ;
    }

    @Override
    public void onUserVisible() {
        super.onUserVisible();
        if (mPresenter != null) {
            mPresenter.onStart();
        }
    }

    @Override
    protected BestCollectionPresenter getPresenter() {
        return new BestCollectionPresenter(this);
    }

    @Override
    protected int getLayout() {
        return R.layout.pullable_listview;
    }

}
